package com.mojito.gorm.map;

/**
 * 存储一些sql信息
 *
 * @author mojito
 */
public class SqlMapInfo {
    private String sql;
    private Class<?> type;
    private OperateTypeEnum operateType;

    public SqlMapInfo(String sql, Class<?> type, OperateTypeEnum operateType) {
        this.sql = sql;
        this.type = type;
        this.operateType = operateType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

    public OperateTypeEnum getOperateType() {
        return operateType;
    }

    public void setOperateType(OperateTypeEnum operateType) {
        this.operateType = operateType;
    }

    @Override
    public String toString() {
        return "SqlMap{" +
                "sql='" + sql + '\'' +
                ", type=" + type.getName() +
                ", operateType=" + operateType +
                '}';
    }
}
